package com.ym.manager.sys.config;

import com.ym.base.BaseDao;
import com.ym.manager.sys.config.model.Mq;
import com.ym.manager.sys.config.model.SysConfigInfo;
import com.ym.manager.sys.config.model.SysErrorCode;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Description
 * Created by 王伟
 * Date create on 16:46 2019/11/19.
 */
@Repository
public interface SysConfigsDao extends BaseDao {
    /* 所有配置 */
    List<SysConfigInfo> sysConfig();
    /* 所有错误码 */
    List<SysErrorCode> sysErrorCode();
    /* oss配置 */
    List<SysConfigInfo> ossConfig();
    /* 资金配置 */
    List<SysConfigInfo> walletConfig();
    /* mq配置 */
    Mq sysMq();

    int getSysListCount(Map<String, Object> map);

    List<SysConfigInfo> getSysList(Map<String, Object> map);

    int getWalletListCount(Map<String, Object> map);

    List<SysConfigInfo> getWalletList(Map<String, Object> map);

    int updateSys(@Param("configKey")String configKey, @Param("configValue")String configValue);

    int updateWallet(@Param("configKey")String configKey, @Param("configValue")String configValue);

    int delSys(@Param("configKey")String configKey);

    int delWallet(@Param("configKey")String configKey);
}
